<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>

<p id="msg"></p>
<html:form method="post" styleClass="control" action="/EditService?id=${requestScope.service.id}"
	enctype="multipart/form-data">

	<fieldset id="formservice"><label> <bean:message key="Modservice.label"/> </label><br />
	<label> ITA </label>
	<table>
		<tr>
			<td><label> <bean:message key="ModserviceForm.name"/> </label></td>
			<td><html:text styleClass="textfieldadmin" property="name"
				value="${requestScope.service.name}" /></td>
		</tr>

	</table>
	</fieldset>
	<fieldset id="formservice">
	<table>
		<tr>
			<td><label> Script </label></td>
			<td><html:text styleClass="textfieldadmin" property="nameScript"
				 /></td>
		</tr>
		<tr>
			<td><label> <bean:message key="ModserviceForm.groups"/> </label></td>
			<td>
			<ul id="grouplist">
			
				<c:forEach var="listElement" items="${requestScope.groupList}">

					<li>
					
					<html:multibox styleClass="textfieldadmin" property="group" value="${listElement.id}"/>
					${listElement.name}
						
						 
				</li>

				</c:forEach>
			</ul>
			</td>

		</tr>
		<tr>
			<td><label> <bean:message key="ModserviceForm.position"/> </label></td>
			<td><html:select styleClass="textfieldadmin" property="position">

				<html:option value="1">Menu 1</html:option>
				<html:option value="2">Menu 2</html:option>

			</html:select></td>

		</tr>
	</table>
	</fieldset>

	<fieldset id="formservice">
	<table>


		<tr>
			<td><html:submit styleClass="control" value="Edit" /></td>
			</td>
		</tr>
	</table>
	</fieldset>

</html:form>

